package org.csu.mypetstore.service;

import net.sf.json.JSONObject;
import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.Item;

import java.util.List;

public interface CartService {

    List<String> getItemsinCart(Account account);

    void insertItemToCart(Account account, String itemId);

    void deleteItemFromCart(Account account, String itemId);

    void minusCart(Account account, String itemId);

    void clearUpCart(Account account);

    int getNum(Account account, String itemId);

   JSONObject getItemInfo(Account account , String itemId);

}
